//
// Created by jsjxsy on 2022/8/17.
// 错误继承异常
//
#include <string>
class SubLogicException : public std::logic_error {
 public:
  explicit SubLogicException(const std::string &s) : logic_error(s) {}
  SubLogicException(const std::string &s,
                    const std::string &lhs,
                    const std::string &rhs) : logic_error(s), lhs(lhs), rhs(rhs) {
  }
  SubLogicException& operator+=(const SubLogicException &rhs);
 private:
  const std::string lhs;
  const std::string rhs;

};

SubLogicException & SubLogicException::operator+=(const SubLogicException &rhs) {
}
class SubRuntimeException : public std::runtime_error {

};
